﻿<UserControl x:Class="LinkED_WP.LinkED_POP_SET"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="260" d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="3*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height ="*" />
            <RowDefinition Height ="*" />
            <RowDefinition Height ="*" />
        </Grid.RowDefinitions>

        <TextBox x:Name="txtPort" Grid.Row="0" Grid.Column="1" Text="20000"
                 KeyUp="txtPort_KeyUp" MaxLength="5" />
        <toolkit:ListPicker x:Name="LPType"  Grid.Row ="1" Grid.Column="1">
            <sys:String>TCP</sys:String>
            <sys:String>UDP</sys:String>
        </toolkit:ListPicker>

        <TextBlock Text ="端口" Grid.Row="0" Grid.Column="0" Margin="10" 
                   HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="36" />

        <TextBlock Text ="模式" Grid.Row="1" Grid.Column="0" Margin="10" 
                   HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="36" />
        
        <Grid Grid.Row ="2" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Button Content="确定" Click="OKButton_Click"/>
            <Button Grid.Column="1" Content="取消"  Click="CancleButton_Click" />
        </Grid>

    </Grid>
</UserControl>
